﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Pretraga.aspx.cs" Inherits="automobili_gui.UserManagement.Pretraga" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
    .style1
    {
        width: 153px;
    }

     
    
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table style="width: 100%;">
    <tr>
        <td class="style1">
            Marka:</td>
        <td class="style1">
            <asp:DropDownList ID="markaLista" runat="server" CausesValidation="True"
               >
            </asp:DropDownList>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    
    <tr>
        <td class="style1">
            Model:</td>
        <td class="style1">
            <asp:DropDownList ID="modelLista" runat="server" 
                
                 CausesValidation="True">
            </asp:DropDownList>
        
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style1">
            Pogonsko gorivo:</td>
        <td class="style1">
            <asp:DropDownList ID="gorivoLista" runat="server" CausesValidation="true">
            </asp:DropDownList>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style1">
            Oblik karoserije:</td>
        <td class="style1">
            <asp:DropDownList ID="karoserijaLista" runat="server" CausesValidation="true">
            </asp:DropDownList>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style1">
            Cena:</td>
        <td class="style1">
            <asp:TextBox ID="cenaUnos" runat="server" CausesValidation="true"></asp:TextBox>
            <asp:Label id="cen" ForeColor="Red" runat="server"></asp:Label>
        </td>
        <td>
            <asp:RadioButton ID="Skuplji" runat="server" Text="Skuplji" 
                GroupName="CenaDugm"  />
            <asp:RadioButton ID="Jeftiniji" runat="server" Text="Jeftiniji" 
                GroupName="CenaDugm"  />
        </td>
    </tr>
    <tr>
        <td class="style1">
            Godina proizvodnje:</td>
        <td class="style1">
            <asp:TextBox ID="godinaUnos" runat="server"></asp:TextBox>
             <asp:Label id="godP" ForeColor="Red" runat="server"></asp:Label>
        </td>
        <td>
            <asp:RadioButton ID="Stariji" runat="server" Text="Stariji" GroupName="Godiste" 
                 />
              
            <asp:RadioButton ID="Mladji" runat="server" GroupName="Godiste" Text="Mladji" 
                 />
        </td>
    </tr>
    <tr>
        <td class="style1">
            <asp:Button ID="traziDugme" runat="server" Text="Trazi" OnClick="trazi" />
        </td>
        <td class="style1">
            &nbsp;</td>
        <td>
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
        </td>
    </tr>
</table>
    <asp:GridView ID="GridView1" runat="server" Caption="Pronadjeni automobili" 
         AutoGenerateColumns="False" PageSize="9" AllowPaging="True" 
        OnPageIndexChanging="Prikazi_sledece" OnPageIndexChanged="Prikazi" 
       
         >
       <Columns >
    <asp:BoundField HeaderText ="Id"  DataField ="id" />
    <asp:BoundField HeaderText ="Marka" DataField ="marka" />
    <asp:BoundField HeaderText ="Model" DataField ="model" />  
    
    <asp:BoundField HeaderText ="Cena" DataField ="cena" />  
    <asp:BoundField HeaderText ="Godina proizvodnje" DataField="godinaProizvodnje" />  
           <asp:HyperLinkField 
               Text="Detalji" DataNavigateUrlFields="id" 
               DataNavigateUrlFormatString="~/UserManagement/Detalji_automobil.aspx?id={0}"  />
               
       
               
    </Columns>
     
        <PagerSettings PageButtonCount="3" />

     
        <SelectedRowStyle BackColor="#FF99FF" />

     
    </asp:GridView>

           
            </asp:Content>
